package com.zhanghe.study.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Locale;

public class TestServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("TestServlet...");

        Locale locale = req.getLocale();
        locale.getCountry();
        locale.getDisplayCountry();
        locale.getLanguage();
        locale.getDisplayLanguage();
        locale.getISO3Country();
        locale.getISO3Language();
    }
}
